package com.ezgo.erc.master.utils;

/**
 * 自定义信息模板
 * 
 * @author devintam
 *
 * @param <T>
 * 
 * @date 2015-07-06
 */
public class Message<T> {

	/**
	 * status 返回状态 msg 返回信息 dataOrigin 数据来源 data 泛型数据
	 */
	private String status;
	private String msg;
	private String dataOrigin;
	private T data;

	public Message() {
		super();
	}

	public Message(String status, String msg) {
		super();
		this.status = status;
		this.msg = msg;
	}

	public Message(String status, String msg, String dataOrigin, T data) {
		super();
		this.status = status;
		this.msg = msg;
		this.dataOrigin = dataOrigin;
		this.data = data;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getDataOrigin() {
		return dataOrigin;
	}

	public void setDataOrigin(String dataOrigin) {
		this.dataOrigin = dataOrigin;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
